package com.seari.custody.controller;

import com.seari.custody.bean.MonitorSupplier;
import com.seari.custody.pojo.MessageBean;
import com.seari.custody.service.IMonitorSupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/monitorSuppliers")
public class MonitorSupplierController {
    @Autowired
    private IMonitorSupplierService monitorSupplierService;

    @GetMapping
    public MessageBean getAllAllowSupplier(
    ) {
        List<MonitorSupplier> suppliers = monitorSupplierService.suppliers();
        return MessageBean.success("获取监护供应商成功", suppliers);
    }

}
